package pl.edu.agh.uddiProxy.client;

import java.util.Map;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

public interface SearchService extends RemoteService {
	String SERVICE_URI = "/searchService";
	
	public static final class Util {
		private Util() {
		}
		
		public static SearchServiceAsync getInstance() {
			SearchServiceAsync instance = (SearchServiceAsync) GWT.create(SearchService.class);
			ServiceDefTarget target = (ServiceDefTarget) instance;
			target.setServiceEntryPoint(GWT.getModuleBaseURL() + SERVICE_URI);
			return instance;
		}
	}
	
	Map<String, Parameter> getParametersMap();
}
